﻿@{
    ViewBag.Title = "菜肴视图";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.DWZGridFor<OrderDish>()
    .Title("菜肴视图")
    .Action(@Url.Action("OrderDishList"))
    .DefaultSortOption("Name")
    .Columns(col =>
    {
        col.Bind(e => e.Id).IsKey();
        col.Bind(e => e.Date).Width(70).DateFormat("yyyy-MM-dd");
        col.Bind(e => e.Category).EnumKey("DishType").Width(60);
        col.Bind(e => e.Code).Width(80).Align(FlexiGridAlign.Left);
        col.Bind(e => e.Name).Width(80).Align(FlexiGridAlign.Left);
        col.Bind(e => e.Count).Width(80).Align(FlexiGridAlign.Right);
        col.Bind(e => e.TotalCost).Width(80).Align(FlexiGridAlign.Right);
        col.Bind(e => e.TotalPrice).Width(80).Align(FlexiGridAlign.Right);
        col.Bind(e => e.SiteName).Width(80).Align(FlexiGridAlign.Left);
        col.Bind(e => e.PMUserName).Width(80).Align(FlexiGridAlign.Left);

    })
)